<<<<<<< HEAD
=======
import { commentProps } from 'ant-design-vue/es/comment'
>>>>>>> 629a544 (update)
import { createRouter, createWebHistory } from 'vue-router'

const Login = () => import('@/views/Login.vue')
const Layout = () => import('@/views/Layout.vue')
const Department=()=>import('@/views/Department.vue')
const Admin=()=>import('@/views/Admin.vue')
const Driver=()=>import('@/views/Driver.vue')
const DashBoard=()=>import('@/views/DashBoard.vue')
const Vehicle=()=>import('@/views/Vehicle.vue')
const Trip=()=>import('@/views/Trip.vue')
const DriverCost=()=>import('@/views/DriverCost.vue')
<<<<<<< HEAD

=======
const AI=()=>import('@/views/AI.vue')
>>>>>>> 629a544 (update)
const User=()=>import('@/views/User.vue')
const routes = [
  {
    path: '/',
    redirect: '/login',
  },
  {
    path: '/login',
    name: 'Login',
    component: Login
  },
 
  {
    path: '/layout',
    redirect:'/dashboard',
    name: 'Layout',
    component: Layout,
    children:[
      {
        path:'/dashboard',
        name:'DashBoard',
        component:DashBoard
      },
      {
        path:'/department/list',
        name:'Department',
        component:Department
      },
      {
        path:'/admin/list',
        name:'Admin',
        component:Admin
      },
      {
        path:'/user/list',
        name:'User',
        component:User
      },
      {
        path:'/driver/list',
        name:'Driver',
        component:Driver
      },
      {
        path:'/vehicle/list',
        name:'Vehicle',
        component:Vehicle
      },
      {
        path:'/trip/list',
        name:'Trip',
        component:Trip
      },
      {
        path:'/driverCost/list',
        name:'DriverCost',
        component:DriverCost
<<<<<<< HEAD
=======
      },
      {
        path:'/ai',
        name:'AI',
        component:AI
>>>>>>> 629a544 (update)
      }
    ]
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})


export default router 